<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${currentUser != null}">
    <div class="sidebars_account">
        <p><label class="title">Welcome</label></br><label class="info">${currentUser.getFullName()}</label></p>
        <p><label class="title">Phone</label></br><label class="info">${currentUser.getPhone()}</label></p>
        <p><label class="title">Email</label></br><label class="info">${currentUser.getEmail()}</label></p>
        <p><label class="title">Go to</label></br>
            <label class="control_user">
                <a href="/JudiBlog/memberpost?action=newpost">New post</a>
                <a href="/JudiBlog/Page?p=profile">Account</a>
                <a class="logout" href="/JudiBlog/Page?p=logout">logout</a>
            </label>
        </p>
    </div>
</c:if>
<div class="sidebars">   
    <h2>Menu</h2>
    <ul>
        <li><a href="/JudiBlog/Page?p=update">Edit Profile</a></li>
        <li><a href="/JudiBlog/Page?p=listpost">Post Management</a></li>
        <li><a href="/JudiBlog/Page?p=project">Project Management</a></li>
        <li><a href="/JudiBlog/Page?p=avatar">Change Avartar</a></li>
        <li><a href="/JudiBlog/Page?p=changepass">Change Password</a></li>
    </ul>
</div>